<div id="toppage">
    <div class="left">
        <img src="css/images/logo.png" alt="babyshop" title="babyshop"/>
    </div>
    
    <div class="right">
        <div id="top-content">
            <span>Xin chào</span>
            <?php if(isset($_SESSION['user'])){ ?>
            <ul class="sub-menu">
                <li><a href="#"><?php echo $_SESSION['user']['fullname'];?></a> </li>|
                <li><a href="/?mod=default&act=logout">Thoát</a></li>
            </ul>
            <?php }else{?>
            <ul class="sub-menu">
                <li><a href="/?mod=default&act=login" id="btLogin"> Ðăng nhập</a> </li>|
                <li><a href="/?mod=default&act=register">Ðăng ký</a></li>
            </ul>
            <?php } ?>
            
            <form method="post" action="" id="seach">
                <input class="field size0" type="text" value="Nhập nội dung tìm kiếm..."/>
                <input class="btseach" type="submit" value="Tìm" />
            </form>
        </div>
        <div id="menu">
            <ul>
                <li><a href="/?mod=default&act=index" id="menu-home" <?php echo ($request['action']=="index")?"class='active'":""; ?> > </a></li>
                <li><a href="/?mod=default&act=about" id="menu-about" <?php echo ($request['action']=="about")?"class='active'":""; ?>></a></li>
                <li><a href="/?mod=default&act=register" id="menu-registry" <?php echo ($request['action']=="register")?"class='active'":""; ?> ></a></li>
                <li><a href="/?mod=default&act=login" id="menu-login" <?php echo ($request['action']=="login")?"class='active'":""; ?> ></a></li>
                <li><a href="/?mod=default&act=cart" id="menu-cart" <?php echo ($request['action']=="cart")?"class='active'":""; ?> ></a></li>
                <li><a href="/?mod=default&act=checkout" id="menu-checkout" <?php echo ($request['action']=="checkout")?"class='active'":""; ?> ></a></li>
                <li><a href="/?mod=default&act=contact" id="menu-contact" <?php echo ($request['action']=="contact")?"class='active'":""; ?> ></a></li>
            </ul>
        </div>
    </div>
    <div class="clear"></div>
</div>